﻿// JScript source code
var VNavParent = function (obj) {
    $(obj).children("ul").slideToggle(300);
    VP_down_className = $(obj).attr('class');
    if (VP_down_className == 'ui-icons VNavParentI') {
        $(obj).addClass('VNavParentII_B').removeClass('VNavParentI')

    } else {
        $(obj).addClass('VNavParentI').removeClass('VNavParentII_B')
    }
}
var s2_blue = function (obj) {
    s2_blue_className = $(obj).attr('class');
    if (s2_blue_className == 's2_blue') {
        $(obj).addClass('s2_blue_B').removeClass('s2_blue');
        s2_blue_p_className = $(obj).children("p").attr('class');
        if (s2_blue_p_className == 'ui-icons s2_blue_1') {
            $(obj).children("p").addClass('s2_blue_1_B').removeClass('s2_blue_1');
        }
        if (s2_blue_p_className == 'ui-icons s2_blue_2') {
            $(obj).children("p").addClass('s2_blue_2_B').removeClass('s2_blue_2');
        }
        if (s2_blue_p_className == 'ui-icons s2_blue_3') {
            $(obj).children("p").addClass('s2_blue_3_B').removeClass('s2_blue_3');
        }

    } else {
        $(obj).addClass('s2_blue').removeClass('s2_blue_B');
        s2_blue_p_className = $(obj).children("p").attr('class');
        if (s2_blue_p_className == 'ui-icons s2_blue_1_B') {
            $(obj).children("p").addClass('s2_blue_1').removeClass('s2_blue_1_B');
        }
        if (s2_blue_p_className == 'ui-icons s2_blue_2_B') {
            $(obj).children("p").addClass('s2_blue_2').removeClass('s2_blue_2_B');
        }
        if (s2_blue_p_className == 'ui-icons s2_blue_3_B') {
            $(obj).children("p").addClass('s2_blue_3').removeClass('s2_blue_3_B');
        }
    }
}
var s2_green = function (obj) {
    s2_green_className = $(obj).attr('class');
    if (s2_green_className == 's2_green') {
        $(obj).addClass('s2_green_B').removeClass('s2_green');
        s2_green_p_className = $(obj).children("p").attr('class');
        if (s2_green_p_className == 'ui-icons s2_green_1') {
            $(obj).children("p").addClass('s2_green_1_B').removeClass('s2_green_1');
        }
        if (s2_green_p_className == 'ui-icons s2_green_2') {
            $(obj).children("p").addClass('s2_green_2_B').removeClass('s2_green_2');
        }
        if (s2_green_p_className == 'ui-icons s2_green_3') {
            $(obj).children("p").addClass('s2_green_3_B').removeClass('s2_green_3');
        }

    } else {
        $(obj).addClass('s2_green').removeClass('s2_green_B');
        s2_green_p_className = $(obj).children("p").attr('class');
        if (s2_green_p_className == 'ui-icons s2_green_1_B') {
            $(obj).children("p").addClass('s2_green_1').removeClass('s2_green_1_B');
        }
        if (s2_green_p_className == 'ui-icons s2_green_2_B') {
            $(obj).children("p").addClass('s2_green_2').removeClass('s2_green_2_B');
        }
        if (s2_green_p_className == 'ui-icons s2_green_3_B') {
            $(obj).children("p").addClass('s2_green_3').removeClass('s2_green_3_B');
        }
    }
}
//$(document).ready(function(){
//    $("#VNavParent2").mouseenter(function () {
//        $("#VNavParent2").addClass("VNavParentII");
//        $("#VNavParent2").removeClass("VNavParentI");

//    });
//    $("#VNavParent2").mouseleave(function () {
//        $("#VNavParent2").addClass("VNavParentI");
//        $("#VNavParent2").removeClass("VNavParentII");
//    });

//});

